{% extends 'system_template/public/pop_up_main.html' %}
{% block head %}
<style>
#user_gender{overflow: hidden}
#user_gender li{
    float: left;
}
#user_gender li label{
    position: relative;
    left: -20px;
    top: 3px;
}
</style>
{% endblock %}
{% block content %}
    <form class="layui-form">
        {% for foo in form%}
            <div class="layui-form-item">
                <label class="layui-form-label">{{ foo.label }}</label>
                <div class="layui-input-inline">
                    {{ foo }}
                    {% if foo.name!="user_gender" %}
                    <div class="layui-form-mid">
                        {% if foo.name=='username' %}
                        <span class="x-red">登录唯一ID</span>
                            {% elif foo.name=='password' %}
                            <span class="x-red">登录密码</span>
                            {% elif foo.name=='password2' %}
                            <span class="x-red">登录重复密码</span>
                            {% elif foo.name=='user_qq' %}
                            <span class="x-red">方便联系用户</span>
                        {% endif %}
                    </div>
                    {% endif %}
                </div>
            </div>
        {% endfor %}
        <div class="layui-form-item">
            <div class="layui-input-block">
                <a class="layui-btn" onclick="submit_post()">提交新增</a>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
{% endblock %}